const app = getApp();
Page({
  data: {

  },
  onShow: function () {
    let that = this;    
    wx.showLoading({
      title: '加载中...',
    })
    app.request('mine/index', {}, 'GET', false, function (res) {
      that.setData({
        pageShow: true,
        isSetting: wx.getStorageSync('isSetting'),
        getPhone: wx.getStorageSync('getPhone'),
        user: res.data.data,
      })
    })
  },
  skipPage: function (e) {
    let that = this;
    let path = e.currentTarget.dataset.path;
    wx.navigateTo({
      url: path,
    })
  },
  todetail: function (e) {
    app.confirmTap(function () {
      let path = e.currentTarget.dataset.path;
      wx.navigateTo({
        url: path,
      })
    })
  },
  maskPhone(e){
    let phone = wx.getStorageSync('phone');
    wx.makePhoneCall({
      phoneNumber: phone,
    })
  },
  onReachBottom: function () {

  },
  onShareAppMessage: function () {

  }
})